package com.example.demo.Controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2022-12-29
 * Time: 15:15
 */
@RestController
public class TestController {

    //@RequestMapping(value = "/hi",method = RequestMethod.POST)
    @PostMapping("/hi")
    public String hi(){
        return "hi spring mvc";
    }

}
